Skip to content

Conversation

lkts
Copy link
Contributor

@lkts lkts commented Oct 1, 2025

A reshardSplitShardCountSummary is a field special to resharding functionality. The final goal is for reshardSplitShardCountSummary to be used inside Engine#wrapDirectoryReader via IndexShard#acquireSearcher(Supplier) since it is needed for resharding reader wrapper to work. This PR makes so this value is available to the immediate callers of acquireSearcher(Supplier) like f.e. SearchService#createOrGetReaderContext().

Note that this PR does not change all constructors of ShardSearchRequest in order to keep the size down. Some usages (like ESQL) also need special logic to calculate the value before passing it to ShardSearchRequest. This will be done in the follow up. Currently a default value of 0 is used.

searchShardsGroup.preFiltered(),
searchShardsGroup.skipped()
searchShardsGroup.skipped(),
0 // TODO
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is CCS code path, will remain stubbed with a better comment.

false,
false
false,
0 // TODO
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is CCS code path, will remain stubbed with a better comment.

false,
false
false,
0 // TODO
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for PIT, we need a custom calculation here but it's doable.

@lkts lkts force-pushed the resharding_checksum_search branch from 73d23a4 to 2016bfd Compare October 3, 2025 17:00
@lkts
Copy link
Contributor Author

lkts commented Oct 3, 2025

Test failure is a problem fixed by #135873.

@lkts lkts added >non-issue :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. :Search Foundations/Search Catch all for Search Foundations labels Oct 3, 2025
@lkts lkts marked this pull request as ready for review October 3, 2025 18:19
@elasticsearchmachine elasticsearchmachine added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch Team:Distributed Indexing Meta label for Distributed Indexing team labels Oct 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing)

@lkts lkts requested a review from javanna October 3, 2025 18:19
@lkts lkts force-pushed the resharding_checksum_search branch from 29e8862 to 20a7df7 Compare October 7, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >non-issue :Search Foundations/Search Catch all for Search Foundations Team:Distributed Indexing Meta label for Distributed Indexing team Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants